package com.pearadmin.modules.sys.controller;

import com.pearadmin.common.constant.ControllerConstant;
import com.pearadmin.common.web.base.BaseController;
import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 大屏控制器
 */
@RestController
@Api(tags = {"监测大屏"})
@RequestMapping(ControllerConstant.API_SYSTEM_PREFIX + "large")
public class SysLargeController extends BaseController {

    /**
     * Describe: 文件管理页面
     * Param: null
     * Return: ModelAndView
     */
    @GetMapping("main")
    @PreAuthorize("hasPermission('/system/large/main','sys:large:main')")
    public ModelAndView main() {
//        return jumpPage(MODULE_PATH + "main");
        return jumpPage("system/large/index");
    }


}
